# Maintainer: Jeff Bilyk <jbilyk@gmail.com>
pkgname=perl-crypt-rijndael
_pkgreal=Crypt-Rijndael
pkgver=1.14
pkgrel=2
pkgdesc="Crypt::CBC compliant Rijndael encryption module"
url="https://search.cpan.org/dist/Crypt-Rijndael/"
arch="all"
license="LGPL-2.1"
cpandepends="perl-test-manifest"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/$_pkgreal-$pkgver.tar.gz
	use-stdint.patch
	"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="a3c419142954dc2b430422f532b5349d0fb902a704335ba0708504a6a4a5d617835409916b76bc1b8dc8669c0f03356dab3ef90e5f7ea530b5fcc70bd1bf4eff  Crypt-Rijndael-1.14.tar.gz
515fdf20052fdbe360d7664378d4a512532eda367e629dcf999222ddda8799986277c20b1275d1a92a46c8be95e980dd6e27b19a5d77af31ad8d369ea7d97883  use-stdint.patch"
